Remove hacks when hashing package ids
authorAlex Crichton <alex@alexcrichton.com>
Tue, 1 Mar 2016 06:17:28 +0000 (22:17 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 3 Mar 2016 21:35:46 +0000 (13:35 -0800)
commite56965fb747d40c32e085f63b249cf0202c1ddd3
tree54433c09dc9eee329f84b1250d71716f8c4ba336
parent690ce845f726424b8aeee178dcfec32eeeabdc2d
Remove hacks when hashing package ids

Right now there's a few hacks here and there to "correctly" hash package ids by
taking a package's root path into account instead of the path store in the
package id. The purpose of this was to solve issues where the same package
referenced from two locations ended up having two different hashes.

This hack leaked, however, into the implementation of fingerprints which in
turned ended up causing spurious rebuilds. Fix this problem once and for all by
just defining hashing on package ids the natural and expected way.
src/cargo/core/package.rs
src/cargo/core/package_id.rs
src/cargo/sources/git/source.rs
src/cargo/sources/path.rs
src/cargo/util/toml.rs